<template>
  <div>
    <div :class="className">
      <div class="flex items-center">
        <div :title="value.mc" class="font-semibold">{{ value.mc }}</div>
        <div v-if="value.gg" :title="value.gg" class="text-gray-400 ml-2 text-xs">{{ value.gg }}</div>
        <div v-if="value.cj" :title="value.cj" class="text-gray-400 ml-2 text-xs">{{ value.cj }}</div>
      </div>
      <div class="flex">
        <div v-if="value.ph" :title="value.ph" class="ml-2 font-semibold">{{ value.ph }}</div>
        <div v-if="value.yxq" :title="value.yxq" class="ml-2 font-semibold">{{ value.yxq }}</div>
      </div>
    </div>
    <div>
      <slot name="suffix"></slot>
    </div>
  </div>
</template>
<script setup>
defineProps({
  value: {
    type: Object,
    default: () => ({ mc: '', gg: '', cj: '', ph: '', yxq: '' })
  },
  className: {
    type: String,
    default: 'flex items-center truncate'
  }
})
</script>
